package cn.virens.common.boot.dubbo.consumer.converter;

import cn.virens.common.util.exception.APIException;
import org.dromara.hutool.core.convert.ConvertUtil;
import org.springframework.core.convert.converter.Converter;

import java.time.LocalDateTime;

public class LocalDateTimeConverter implements Converter<String, LocalDateTime> {

    @Override
    public LocalDateTime convert(String source) throws APIException {
        return ConvertUtil.convert(LocalDateTime.class, source);
    }
}
